package com.dingreading.cloud.admin.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 会员跟进记录
 */
@Data
@Table("member_follow")
public class MemberFollow implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()")
    private Date addTime;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date followTime;

    /**
     * 更新时间
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private Date editTime;

    /**
     * 公司uid
     */
    @ApiModelProperty(value = "公司uid")
    private String corpUid;

    /**
     * 门店uid
     */
    @ApiModelProperty(value = "门店uid")
    private String storeUid;

    /**
     * 门店名称
     */
    @ApiModelProperty(value = "门店名称")
    private String storeName;

    /**
     * 会员uid
     */
    @ApiModelProperty(value = "会员uid")
    private String memberUid;

    /**
     * 会员名称
     */
    @ApiModelProperty(value = "会员名称")
    private String memberName;

    /**
     * 跟进uid
     */
    @ApiModelProperty(value = "跟进uid")
    private String uid;


    @ApiModelProperty(value = "跟进类型uid")
    private String followTypeUid;

    /**
     * 跟进类型
     * 沟通：11.电话，12.短信，13.微信
     * 跟进：21.添加内容，22.更新信息 23.修改状态
     * 流转：31.新增，32导入，33.分配，34.领取，35.放弃，36.回收
     */
    @ApiModelProperty(value = "跟进类型名称")
    private String followType;

    /**
     * 跟进内容
     */
    @ApiModelProperty(value = "跟进内容")
    private String content;

    /**
     * 关联的信息关键字
     */
    @ApiModelProperty(value = "关联的信息关键字")
    private String keyword;

    /**
     * 创建人uid
     */
    @ApiModelProperty(value = "创建人uid")
    private String addStaffUid;

    /**
     * 创建人姓名
     */
    @ApiModelProperty(value = "创建人姓名")
    private String addStaffName;

    /**
     * 更新人uid
     */
    @ApiModelProperty(value = "更新人uid")
    private String lastStaffUid;

    /**
     * 更新人姓名
     */
    @ApiModelProperty(value = "更新人姓名")
    private String lastStaffName;

    /**
     * 跟进人uid
     */
    @ApiModelProperty(value = "跟进人uid")
    private String followStaffUid;

    /**
     * 跟进人姓名
     */
    @ApiModelProperty(value = "跟进人姓名")
    private String followStaffName;

    /**
     * 来源 1.系统 2.员工
     */
    @ApiModelProperty(value = "来源 1.系统 2.员工")
    private Integer source;

}
